package com.aaa.service.sas;

import com.aaa.entity.MyPage;

import com.aaa.entity.sas.TSasHuiFang;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface TSasHuifangService {

    PageInfo selectall(MyPage myPage, TSasHuiFang tSasHuiFang);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    Integer delete(Integer id);

    /**
     * 修改
     * @param tSasHuiFang
     * @return
     */
    boolean update(TSasHuiFang tSasHuiFang);

    /**
     * 添加到回访记录
     * @param request
     * @param session
     * @return
     */
    boolean add(HttpServletRequest request, HttpSession session, TSasHuiFang tSasHuiFang);


    Integer selectidByusername(String username);



    Integer selectusernameidByusername(Integer id);

}
